# -*- encoding=utf8 -*-

from airtest.core.api import *

from poco.drivers.ios import iosPoco

connect_device("iOS:///127.0.0.1:8100")
poco = iosPoco()

poco("钱包").click()
wait(Template(r"tpl1685849173063.png", record_pos=(-0.368, -0.68), resolution=(1242, 2208)))
touch(Template(r"tpl1685849209752.png", record_pos=(-0.265, -0.48), resolution=(1242, 2208)))

wait(Template(r"tpl1685849225083.png", record_pos=(-0.006, -0.001), resolution=(1242, 2208)))

poco("更多", type="Button").click()
wait(Template(r"tpl1685849281853.png", record_pos=(-0.015, -0.52), resolution=(1242, 2208)))
swipe((0.5, 0.5), vector=(0.5, 0.0))
poco("移除此卡", type='StaticText').click()
touch(Template(r"tpl1685849392840.png", record_pos=(-0.016, 0.631), resolution=(1242, 2208)))

wait(Template(r"tpl1685849173063.png", record_pos=(-0.368, -0.68), resolution=(1242, 2208)), 30)

# start_app("com.apple.PassbookUIService")
